<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ page session="false" %>
<%@ page isELIgnored ="false" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>

<script type="text/javascript">
//<![CDATA[
(function(){
	dojo.byId("lbl_properties_group_new_label").innerHTML = KppModule.commonResource.code;
	$kdom.appendDojoProp("input_properties_group_new_label","missingMessage",$ksub(KppModule.commonResource.missingMessage,[KppModule.commonResource.group]));
	$kdom.appendDojoProp("input_properties_group_new_label","invalidMessage",SysAdmin._resource.invalidKeyString);
	$kdom.appendDojoProp("btn_properties_group_new_save","label",KppModule.commonResource.save);
	$kdom.appendDojoProp("btn_properties_group_new_cancel","label",KppModule.commonResource.cancel);
})();
//]]>
</script>
<span style="display:none">To solve IE7/8 script event tag problem.</span>
<div data-dojo-type="dijit.form.Form" data-dojo-props="action:'../../config/properties/group/new.json',id:'frm_properties_group_new'">
	<table width="100%" cellspacing="10">
		<tr>
			<td><label id="lbl_properties_group_new_label">Group Label</label></td>
			<td><input id="input_properties_group_new_label" data-dojo-type="dijit.form.ValidationTextBox" data-dojo-props="required:true,trim:true,name:'code',maxLength:20,regExp:'[a-zA-Z][a-zA-Z0-9\\-_\\.]*'"></input></td>
		</tr>
	</table><br/>
	<div class="dialogFooter">
		<div id="btn_properties_group_new_save" data-dojo-type="dijit.form.Button" data-dojo-props="iconClass:'dijitEditorIcon dijitEditorIconSave', showLabel:true" style="width:70px;">
			<script type="dojo/on" data-dojo-event="click" data-dojo-args="evt">
			var options = {
				domain:KppModule.commonResource.group,
				refresh:Properties.refresh,
				button:this,
				dialogId:Properties._dlgGroupNewId,
				formId:"frm_properties_group_new",
				resource:SysAdmin._resource
			};
			KppModule.restProxy(options).postNew();
			</script>
		</div>
		<div id="btn_properties_group_new_cancel" data-dojo-type="dijit.form.Button" data-dojo-props="iconClass:'dijitEditorIcon dijitEditorIconUndo', showLabel:true" style="width:70px;">
			<script type="dojo/on" data-dojo-event="click" data-dojo-args="evt">
				dijit.byId(Properties._dlgGroupNewId).hide();
			</script>
		</div>
	</div>
</div>